package com.itheima.sh.clients.fallback;

import com.itheima.sh.clients.UserFeign;
import com.itheima.sh.pojo.User;
import org.springframework.stereotype.Component;


@Component
public class UserFeignApiFallBack  implements UserFeign {
    @Override
    public User queryById(String username) {
        User user = new User();
        user.setNickName("已经暂停服务, UserFeignApiFallBack");
        user.setName("-1");
        user.setUsername(username);

        return user;
    }
}
